package com.foreknow.mapping;

import com.foreknow.model.Hello;

import java.sql.ResultSet;
import java.sql.SQLException;

public class HelloMappingImpl  implements EntityMapping {
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Hello hello = new Hello();
        hello.setId(rs.getInt("id"));
        hello.setName(rs.getString("name"));
        hello.setAge(rs.getString("age"));
        return hello;
    }
}
